﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VideoServer.ViewModel.Helpers;

namespace VideoServer.Helpers
{
    //用于管理跟踪信息和异常信息及错误信息的输出打印
    public delegate void CustomEventHandler(Object sender,CustomEventArgs e);
    public class ErrorHelper
    {
        public static event CustomEventHandler printLog;

        public static void OnPrintLog(Object sender, CustomEventArgs e)
        {
            //log显示
            if (printLog != null)
                printLog(sender,e);
            //保存log文件，在此添加
        }

    }
    public enum MsgTyp
    {
        LOG,
        DEBUG,
        EXCEPTION,
        ERROR,
    }
}
